#!/bin/env bash

function lyt-defenv {
    if [ $# != 2 ] ; then
	echo "lyt-defenv ::: number of args must be 2, instead of $#"
       return 1
    else
	export $1=$2
    fi
}


function lyt-defpath {
    if [ $# != 1 ] ; then
	echo "lyt-defpath ::: number of args must be 1, instead of $#"
       return 1
    elif ! [ -d $1 ] && [ -f $1 ] ; then
	echo "lyt-defpath ::: file or directory $1 does not exists!!!"
	return 1
    else
	    PATH="$1:$PATH"
    fi
}

